const { getSelfAdmin, addAdmins, getAdmins, updateAdmins } = require('../dao/adminsDao');

module.exports.getSelfAdmin = async function(data) {
    const result = await getSelfAdmin(data);
    return result;
}

module.exports.addAdmins = async function(data) {
    await addAdmins(data);
}

module.exports.getAdmins = async function() {
    const result = await getAdmins();
    return result;
}
module.exports.updateAdmins = async function(data, data1) {
    const result = await updateAdmins(data, data1);
    return result;
}